// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.


using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
using Silk.NET.Core;
using Silk.NET.Core.Native;
using Silk.NET.Core.Attributes;
using Silk.NET.Core.Contexts;
using Silk.NET.Core.Loader;

#pragma warning disable 1591

namespace Silk.NET.Core.Win32Extras
{
    [NativeName("Name", "tagIDLDESC")]
    public unsafe partial struct IdlDesc
    {
        public IdlDesc
        (
            nuint? dwReserved = null,
            ushort? wIDLFlags = null
        ) : this()
        {
            if (dwReserved is not null)
            {
                DwReserved = dwReserved.Value;
            }

            if (wIDLFlags is not null)
            {
                WIDLFlags = wIDLFlags.Value;
            }
        }


        [NativeName("Type", "ULONG_PTR")]
        [NativeName("Type.Name", "ULONG_PTR")]
        [NativeName("Name", "dwReserved")]
        public nuint DwReserved;

        [NativeName("Type", "USHORT")]
        [NativeName("Type.Name", "USHORT")]
        [NativeName("Name", "wIDLFlags")]
        public ushort WIDLFlags;
    }
}
